<title>Clear Flat Signin Form Widget Template | Home </title>
<!-- Custom Theme files -->
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/style.css" media="all">
<!-- Custom Theme files -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<meta name="keywords" content="Login form web template, Sign up Web Templates, Flat Web Templates, Login signup Responsive web template, Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyErricsson, Motorola web design" />


<style> 
body{ text-align:center} 
.div{ margin:0 0 0 30px; width:300px; height:500px; border:0px solid #F00} 
.div1{ margin:0 0 0 60px; width:300px; height:40px; border:0px solid #F00} 
/* css注释：为了观察效果设置宽度 边框 高度等样式 */ 
</style> 

<?php /** @var BootActiveForm $form */
//$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
$form = $this->beginWidget('CActiveForm', array(
    'id'=>'activity',
    //'type'=>'horizontal',
    'enableAjaxValidation'=>false,
    'htmlOptions' => array('enctype' => 'multipart/form-data'),
)); ?>
 
<fieldset>
 
    <!-- <legend>创建活动</legend> -->
    
    <?php 
        $this->widget('bootstrap.widgets.TbMenu', array(
        'type'=>'tabs', // '', 'tabs', 'pills' (or 'list')
        'stacked'=>false, // whether this is a stacked menu
        'items'=>array(
            array('label'=>'Home', 'url'=>array(
                'business', 'usr' => $_GET['usr'],
            )),
            array('label'=>'设置', 'url'=>'#'),
            array('label'=>'创建活动', 'url'=>'#', 'active'=>true),
            ),
        )); 
    ?>    
    <div class = 'div'>
		<?php echo $form->labelEx($model,'activity_name', array('class'=>'span3')); ?>
        	<?php echo $form->textField($model,'activity_name'); ?>
        	<?php echo $form->error($model,'activity_name'); ?>

		
		<?php echo $form->labelEx($model,'company_name'); ?>
		<?php echo $form->textField($model,'company_name'); ?>
		<?php echo $form->error($model,'company_name'); ?>

		
		<?php echo $form->labelEx($model,'telephone'); ?>
		<?php echo $form->textField($model,'telephone'); ?>
		<?php echo $form->error($model,'telephone'); ?>

		
		<?php echo $form->labelEx($model,'start_time'); ?>
		<?php echo $form->textField($model,'start_time', array('value'=>date('Y-m-d H:i:s',time()))); ?>
		<?php echo $form->error($model,'start_time'); ?>

		
		<?php echo $form->labelEx($model,'end_time'); ?>
		<?php echo $form->textField($model,'end_time',array('value'=>date('Y-m-d H:i:s',time()+8*3600))); ?>
		<?php echo $form->error($model,'end_time'); ?>

		
		<?php echo $form->labelEx($model,'location'); ?>
		<?php echo $form->textField($model,'location'); ?>
		<?php echo $form->error($model,'location'); ?>	
	
    
    
   <!--  <div class=”row”> -->
    <?php echo $form->labelEx($model,'activityImg'); ?>
   
<div class = 'div1'>
    <?php echo CHtml::activeFileField($model,'activityImg'); ?>
    <?php echo $form->error($model,'activityImg'); ?>
</div>  

		<?php echo $form->labelEx($model,'goods'); ?>
		<?php echo $form->textArea($model,'goods'); ?>
		<?php echo $form->error($model,'goods'); ?>
    </div>
 
</fieldset>
 
<div class="form-actions">
    <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'submit', 'type'=>'primary', 'label'=>'提交')); ?>
</div>

<?php $this->endWidget(); ?>
